package novel.front.novellist.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.HashMap;

/**
 * Created by 888 on 2016/10/18.
 */
@Controller
public class NovelFrontControoler {

    @Resource
    private JedisPool jedisPool;

    @RequestMapping(value = "ShowList", method = RequestMethod.GET, produces = "text/html;charset=UTF-8")
    public String ShowSutong(Integer id,HttpServletRequest request) {

        Jedis jedis = jedisPool.getResource();
        jedis.set("key1","nihao shijie");

        String ss=jedis.get("key1");

        jedis.close();

        HashMap hashMap=new HashMap();
        ArrayList arrayList=new ArrayList();
        return "novellist/novelList";
    }
}
